package com.ebocy.hammer.core.message;

import com.ebocy.hammer.core.constants.ErrorCode;
import com.ebocy.hammer.core.message.AbstractS2CMessage;

public class S2CErrorCode extends AbstractS2CMessage {
	private short type;

	public S2CErrorCode(short type) {
		this.type = type;
	}

	@Override
	public short getMessageCode() {
		return ErrorCode.BASE_ERROR;
	}

	@Override
	protected void writeMessage() {
		writeShort(type);
	}

}
